var x = 5;
var y = 3;

var inTheCircle = Math.sqrt(Math.pow((x - 1), 2) + Math.pow((y - 1), 2)) < 3;
var outTheRectangular = (((x < -1) || (x > 5)) || ((y > 1) || (y < -1)));
var inCircleAndOutOfRectangular = inTheCircle && outTheRectangular;

console.log(inCircleAndOutOfRectangular);

x = 1;
y = 2;

var inTheCircle = Math.sqrt((Math.pow((x - 1), 2) + Math.pow((y - 1), 2))) < 3;
var outTheRectangular = (((x < -1) || (x > 5)) || ((y > 1) || (y < -1)));
var inCircleAndOutOfRectangular = inTheCircle && outTheRectangular;

console.log(inCircleAndOutOfRectangular);